home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
FWRITELI.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
1KB
|
57 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_FWriteLine( nHandle, cText ) --> nBytesWritten
PARAMETERS:
nHandle : File handle from previous fopen() or fcreate()
cText : Text string to write to file
SHORT:
Write a line of text to an ASCII file.
DESCRIPTION:
_FWriteLine() writes a line of text to a specified file and appends a
carriage return/line feed pair.
nHandle must be a valid file handle from a previous file open or file create.
NOTE:
EXAMPLE:
#include "fileio.ch"
LOCAL nHandle := fcreate('TEST.TXT',FC_NORMAL)
if ferror() = 0
_FWriteLine(nFileHandle, 'This is a line')
_FWriteLine(nFileHandle, 'This is another line')
_FWriteLine(nFileHandle, 'This is the last line')
fclose(nHandle)
else
tone(1000)
? 'Ooops!'
endif
Results:
TEST.TXT contains (if the write was sucessful):
This is a line
This is another line
This is the last line
******************************************************************************/